package com.obas.model.business;

/**
 * 电路关联
 */
public class CircuitAssociation extends Entity {

	/**
	 *
	 */
	private static final long serialVersionUID = 3390560662268974149L;

	public static final String ATTRIBUTE_AREAID = "areaId";
	public static final String ATTRIBUTE_SUBAREAID = "subareaId";

	public static final String COLUMN_AREA_ID = "AREA_ID";
	public static final String COLUMN_SUBAREA_ID = "SUBAREA_ID";

	protected long areaId;
	protected Location area;

	protected long subareaId;
	protected Location subarea;

	private long upperCircuitId;
	private Circuit upperCircuit;

	private long lowerCircuitId;
	private Circuit lowerCircuit;

	/** 路由内顺序 */
	private int innerOrdinal;
	/** 路由间顺序 */
	private int outerOrdinal;

	/**
	 * @return the upperCircuitId
	 */
	public long getUpperCircuitId() {
		return upperCircuitId;
	}

	/**
	 * @param upperCircuitId
	 *            the upperCircuitId to set
	 */
	public void setUpperCircuitId(long upperCircuitId) {
		this.upperCircuitId = upperCircuitId;
	}

	/**
	 * @return the areaId
	 */
	public long getAreaId() {
		return areaId;
	}

	/**
	 * @param areaId
	 *            the areaId to set
	 */
	public void setAreaId(long areaId) {
		this.areaId = areaId;
	}

	/**
	 * @return the area
	 */
	public Location getArea() {
		return area;
	}

	/**
	 * @param area
	 *            the area to set
	 */
	public void setArea(Location area) {
		this.area = area;
	}

	/**
	 * @return the subareaId
	 */
	public long getSubareaId() {
		return subareaId;
	}

	/**
	 * @param subareaId
	 *            the subareaId to set
	 */
	public void setSubareaId(long subareaId) {
		this.subareaId = subareaId;
	}

	/**
	 * @return the subarea
	 */
	public Location getSubarea() {
		return subarea;
	}

	/**
	 * @param subarea
	 *            the subarea to set
	 */
	public void setSubarea(Location subarea) {
		this.subarea = subarea;
	}

	/**
	 * @return the upperCircuit
	 */
	public Circuit getUpperCircuit() {
		return upperCircuit;
	}

	/**
	 * @param upperCircuit
	 *            the upperCircuit to set
	 */
	public void setUpperCircuit(Circuit upperCircuit) {
		this.upperCircuit = upperCircuit;
	}

	/**
	 * @return the lowerCircuitId
	 */
	public long getLowerCircuitId() {
		return lowerCircuitId;
	}

	/**
	 * @param lowerCircuitId
	 *            the lowerCircuitId to set
	 */
	public void setLowerCircuitId(long lowerCircuitId) {
		this.lowerCircuitId = lowerCircuitId;
	}

	/**
	 * @return the lowerCircuit
	 */
	public Circuit getLowerCircuit() {
		return lowerCircuit;
	}

	/**
	 * @param lowerCircuit
	 *            the lowerCircuit to set
	 */
	public void setLowerCircuit(Circuit lowerCircuit) {
		this.lowerCircuit = lowerCircuit;
	}

	/**
	 * @return the innerOrdinal
	 */
	public int getInnerOrdinal() {
		return innerOrdinal;
	}

	/**
	 * @param innerOrdinal
	 *            the innerOrdinal to set
	 */
	public void setInnerOrdinal(int innerOrdinal) {
		this.innerOrdinal = innerOrdinal;
	}

	/**
	 * @return the outerOrdinal
	 */
	public int getOuterOrdinal() {
		return outerOrdinal;
	}

	/**
	 * @param outerOrdinal
	 *            the outerOrdinal to set
	 */
	public void setOuterOrdinal(int outerOrdinal) {
		this.outerOrdinal = outerOrdinal;
	}

}
